package com.will.willaicodemother;

import dev.langchain4j.community.store.embedding.redis.spring.RedisEmbeddingStoreAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableCaching
@SpringBootApplication(exclude = {RedisEmbeddingStoreAutoConfiguration.class})
/*
  启用AspectJ自动代理，并暴露代理对象
  exposeProxy = true 表示允许通过AopContext.currentProxy()获取当前代理对象
  这在需要在同一个类中调用被代理方法时非常有用
 */
@EnableAspectJAutoProxy(exposeProxy = true)
@MapperScan("com.will.willaicodemother.mapper")
public class WillAiCodeMotherApplication {

    public static void main(String[] args) {
        SpringApplication.run(WillAiCodeMotherApplication.class, args);
    }

}
